<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

	<!-- 
		Replace path to template, title, header and body
		with actual data.
	 -->
	<ui:composition template="/home.xhtml">
			<ui:define name="pageTitle">Cadastro de feriado</ui:define>
			<ui:define name="pageHeader">Cadasto de Feriado</ui:define>
			<ui:define name="body">
				<h:form>
					<h:panelGrid columns="2">
					<h:outputLabel value="Dia" />
					<h:inputText value="#{cadastrarFeriadoBB.feriado.dia}">
						<f:convertDateTime pattern="dd/mm/yyyy"/>
					</h:inputText>
					
					<h:outputLabel value="Descrição" />
					<h:inputText value="#{cadastrarFeriadoBB.feriado.descricao}" />
					
					<h:outputLabel value="Dia util anterior" />
					<h:inputText value="#{cadastrarFeriadoBB.feriado.antDiaUtil}" >
						<f:convertDateTime pattern="dd/mm/yyyy"/>
					</h:inputText>
					<h:outputLabel value="Próximo dia util" />
					<h:inputText value="#{cadastrarFeriadoBB.feriado.proxDiaUtil}" >
						<f:convertDateTime pattern="dd/mm/yyyy"/>
					</h:inputText>
				</h:panelGrid>
				<h:commandButton action="#{cadastrarFeriadoBB.salvar}" value="Salvar" />
				<h:commandButton value="Voltar" action="principal" />
				</h:form>
			</ui:define>
	</ui:composition>

</html>